package standard;

import core.GameState;
import core.online.VoidOnlineGameClient;

public class ShooterClient extends VoidOnlineGameClient {

	public ShooterClient() {
		super();
		frame.setUndecorated(false);
		frame.setResizable(true);
		frame.setSize(800, 600);
		frame.setVisible(true);
		System.out.println("Initial Setup Complete.");
	}

	@Override
	public String getName() {
		return "Shooter Client";
	}

	@Override
	public String getServerIP() {
		return "76.118.43.38";
	}

	public static void main(String[] args) {
		new ShooterClient();
	}

	@Override
	protected void beginOnlineGame() {
		((MatchMakingState) currentGameState).matchMade();
	}

	@Override
	public GameState createGameStates() {
		GameState initial = new MatchMakingState();
		addGameState(initial);
		addGameState(new MainGameState(getServerConnection()));
		return initial;
	}

}
